<style tyle="text/css">
    /* .modal-lg {
        width: 60%;
    } */

    .form-group {
        margin-bottom: 1px !important;
    }
</style>
<div class="modal-header">
    <h4 class="modal-title">影院信息</h4>
</div>
<div class="modal-body">

    <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
        <div class="form-group">
            <h4 class="col-lg-3 control-label">场所:</h4>
            <h4 class="col-lg-4">
                <ui-select ng-model="times.place_code" theme="bootstrap" ng-disabled="!is_new">
                    <ui-select-match placeholder="场所...">{{$select.selected.name}}</ui-select-match>
                    <ui-select-choices repeat="item.code as item in placeList">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">房间:</h4>
            <h4 class="col-lg-4">
                <ui-select ng-model="times.room_code" theme="bootstrap" ng-disabled="!is_new">
                    <ui-select-match placeholder="房间...">{{$select.selected.name}}</ui-select-match>
                    <ui-select-choices repeat="item.code as item in roomList">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">电影:</h4>
            <h4 class="col-lg-4">
                <ui-select ng-model="times.product_code" theme="bootstrap" ng-disabled="!is_new">
                    <ui-select-match placeholder="电影...">{{$select.selected.name}}</ui-select-match>
                    <ui-select-choices repeat="item.code as item in movieList">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">
                一次最多购买数量
            </h4>
            <h4 class="col-sm-4">
                <input type="number" class="form-control" placeholder="最大购买数量" ng-model="times.max_seat_num" min="1">
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">
                支付超时时间（分钟）
            </h4>
            <h4 class="col-sm-4">
                <input type="number" class="form-control" placeholder="不支付订单有效时间" ng-model="times.pay_overtime" min="1">
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">
                场次日期
            </h4>
            <h4 class="col-sm-4">
                <!-- <input type="text" class="form-control" placeholder="例：2017-03-06" ng-model="times.show_date" ng-disabled="!is_new"> -->
                <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.value" is-open="date.opened" ng-click="dateOpen($event, date)"
                    placeholder="开始时间" ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-3 control-label">
                场次开始时间
            </h4>
            <h4 class="col-sm-4">
                <!-- <input type="text" class="form-control" placeholder="例：2017-03-06 12:03:36" ng-model="times.show_time_start"> -->
                <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_start.value" is-open="period_start.opened"
                    ng-click="dateOpen($event, period_start)" placeholder="场次开始时间" ng-required="true" close-text="关闭" current-text="今天"
                    clear-text="清除" readonly/>
            </h4>
            <h4 class="col-sm-2">
                <select class="form-control" ng-model="period_start.hour">
                    <option value='00'>00时</option>
                    <option value='01'>01时</option>
                    <option value='02'>02时</option>
                    <option value='03'>03时</option>
                    <option value='04'>04时</option>
                    <option value='05'>05时</option>
                    <option value='06'>06时</option>
                    <option value='07'>07时</option>
                    <option value='08'>08时</option>
                    <option value='09'>09时</option>
                    <option value='10'>10时</option>
                    <option value='11'>11时</option>
                    <option value='12'>12时</option>
                    <option value='13'>13时</option>
                    <option value='14'>14时</option>
                    <option value='15'>15时</option>
                    <option value='16'>16时</option>
                    <option value='17'>17时</option>
                    <option value='18'>18时</option>
                    <option value='19'>19时</option>
                    <option value='20'>20时</option>
                    <option value='21'>21时</option>
                    <option value='22'>22时</option>
                    <option value='23'>23时</option>
                </select>
            </h4>
            <h4 class="col-sm-2">
                <select class="form-control" ng-model="period_start.minute">
                    <option ng-value='item' ng-repeat="item in hourArr">{{item}}分</option>
                </select>
            </h4>
        </div>
        <div class="form-group" ng-if="!is_new">
            <h4 class="col-lg-3 control-label">
                场次结束时间
            </h4>
            <h4 class="col-sm-4">
                <!-- <input type="text" class="form-control" placeholder="场次结束时间" ng-model="times.show_time_end"> -->
                <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_end.value" is-open="period_end.opened"
                    ng-click="dateOpen($event, period_end)" placeholder="场次结束时间" ng-required="true" close-text="关闭" current-text="今天"
                    clear-text="清除" readonly/>
            </h4>
            <h4 class="col-sm-2">
                <select class="form-control" ng-model="period_end.hour">
                    <option value='00'>00时</option>
                    <option value='01'>01时</option>
                    <option value='02'>02时</option>
                    <option value='03'>03时</option>
                    <option value='04'>04时</option>
                    <option value='05'>05时</option>
                    <option value='06'>06时</option>
                    <option value='07'>07时</option>
                    <option value='08'>08时</option>
                    <option value='09'>09时</option>
                    <option value='10'>10时</option>
                    <option value='11'>11时</option>
                    <option value='12'>12时</option>
                    <option value='13'>13时</option>
                    <option value='14'>14时</option>
                    <option value='15'>15时</option>
                    <option value='16'>16时</option>
                    <option value='17'>17时</option>
                    <option value='18'>18时</option>
                    <option value='19'>19时</option>
                    <option value='20'>20时</option>
                    <option value='21'>21时</option>
                    <option value='22'>22时</option>
                    <option value='23'>23时</option>
                </select>
            </h4>
            <h4 class="col-sm-2">
                <select class="form-control" ng-model="period_end.minute">
                    <option ng-value='item' ng-repeat="item in hourArr">{{item}}分</option>
                </select>
            </h4>
        </div>
    </form>

</div>

<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="close()">关闭</button>
</div>